# -*- coding: UTF-8 -*-
# author:zhou date:2019/5/16
import pdb
from utils.api import API
from django.conf.urls import url
from branch.forms import *
from branch.views import *
from user.forms import *
from user.views import *


baseUrl = "/api/user/"
test1API = API(Test1Form, method='GET', moduleUrl='test1/', urlPrefix=baseUrl)
signupAPI = API(SignupForm, method='POST', moduleUrl='signup/', urlPrefix=baseUrl)
loginnowxAPI = API(LoginNoWXForm, method='POST', moduleUrl='loginnowx/', urlPrefix=baseUrl)
loginAPI = API(LoginForm, method='POST', moduleUrl='login/', urlPrefix=baseUrl)
changePasswordAPI = API(ChangePasswordForm, method='POST', moduleUrl='changePassword/', urlPrefix=baseUrl)
updatezsdyAPI = API(UpdatezsdyForm, method='POST', moduleUrl='updatezsdy/', urlPrefix=baseUrl)
updateOtherAPI = API(UpdateOtherForm, method='POST', moduleUrl='updateother/', urlPrefix=baseUrl)
getDYAPI = API(GetDYForm, method='POST', moduleUrl='getdy/', urlPrefix=baseUrl)
generateInviteCodeAPI = API(GenerateInviteCodeForm, method='GET', moduleUrl='generate/', urlPrefix=baseUrl)
logoutAPI = API(LogoutForm, method='POST', moduleUrl='logout/', urlPrefix=baseUrl)
# uploadFileAPI = API(UploadFileForm, method='POST', moduleUrl='upload/', urlPrefix=baseUrl)
getAliTokenAPI = API(GetAliTokenForm, method='POST', moduleUrl='practice/osstoken', urlPrefix=baseUrl)



urlpatterns = [
    url(test1API.moduleUrl, test1),
    url(signupAPI.moduleUrl, signup),
    url(getDYAPI.moduleUrl, getDY),
    url(loginnowxAPI.moduleUrl, loginnowx),
    url(changePasswordAPI.moduleUrl, changePassword),
    url(generateInviteCodeAPI.moduleUrl, generateInviteCode),
    url(updatezsdyAPI.moduleUrl, updatezsdy),
    url(updateOtherAPI.moduleUrl, updateOther),
    url(loginAPI.moduleUrl, login),
    url(logoutAPI.moduleUrl, logout),
    # url(uploadFileAPI.moduleUrl, uploadFile),
    url(getAliTokenAPI.moduleUrl, getAliToken),

]
